<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="title" content="">
	<meta name="description" content="">
	<meta name="keywords" content="">
	<title><?php echo soft_name?></title>

	<!-- Le styles -->
	<link href="css/bootstrap-combined.min.css" rel="stylesheet">
	<link href="css/layoutit.css" rel="stylesheet">

	<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	<script src="js/html5shiv.js"></script>
	<![endif]-->

	<!-- Fav and touch icons -->
	<link rel="shortcut icon" href="img/favicon.png">

	<script type="text/javascript" src="js/jquery-2.0.0.min.js"></script>
	<!--[if lt IE 9]>
	<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
	<![endif]-->
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui.js"></script>
	<script type="text/javascript" src="js/jquery.ui.touch-punch.min.js"></script>
	<script type="text/javascript" src="js/jquery.htmlClean.js"></script>
	<script type="text/javascript" src="js/scripts.js"></script>
	<script type="text/javascript" src="js/action.js"></script>
</head>


<div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<div class="navbar navbar-inverse">
				<div class="navbar-inner">
					<div class="container-fluid">
						<a class="btn btn-navbar" data-target=".navbar-responsive-collapse" data-toggle="collapse"></a> <a class="brand" href="?m=index"><?php echo soft_name?></a>
						<div class="nav-collapse collapse navbar-responsive-collapse">
							<ul class="nav">
								<li>
									<a href="?m=manager">管理中心</a>
								</li>
								<li>
									<a href="?m=customer">客户管理</a>
								</li>

								<li>
									<a href="?m=scan">扫描管理</a>
								</li>
								<li>
									<a href="?m=info">信息搜集</a>
								</li>
								<li>
									<a href="?m=spider">站点爬虫</a>
								</li>
								<!--
								<li>
                                    <a href="?m=pro">专项检测</a>
                                </li>
								-->
								<li>
									<a href="?m=point">节点管理</a>
								</li>
								<li>
									<a href="?m=set">系统管理</a>
								</li>
								<li>
									<a href="?m=proxy">代理地址池</a>
								</li>
							</ul>
							<ul class="nav pull-right">
								<li class="active">
									<a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $_SESSION['username'];?></a>
									<ul class="dropdown-menu">

										<li>
											<a id="modal-978241" href="#cpasswd-<?php echo $_SESSION['username']?>" data-toggle="modal">修改密码</a>
										</li>
										<li>
											<a href="?m=logout">退出</a>
										</li>

									</ul>
								</li>
							</ul>
						</div>

					</div>
				</div>

			</div>
			<div class="tabbable" id="tabs-25550">
				<ul class="nav nav-tabs" style="margin-bottom:15px">
					<li class="active">
						<a href="#panel-941070" data-toggle="tab">项目大厅</a>
					</li>

					<li>
						<a href="#panel-910581" data-toggle="tab">检索中心</a>
					</li>
				</ul>
				<div class="tab-content">
					<div class="tab-pane active" id="panel-941070">

						<div class="moretner">
							<div class="navbar navbar-inverse moretner-left" style="margin-bottom:10px;float:left;background: #fdffff;padding-top:35px;">
								<div class="navbar-inner" style="border-color: #fdffff;background-image: linear-gradient(to bottom, rgb(193,77,73), rgb(193,77,73));">
									<div class="container-fluid" style="padding-top:40px;padding-bottom: 55px;padding-left:15px;height: 90px">
										<a class="brand"  href="?m=scan" style="padding:7px 0px;line-height:25px;">扫描任务</a>

									</div>
								</div>
							</div>
							<div class="moretner-right">

								<table class="table" style="font-size:14px;">
									<thead>
									<tr>
										<th style="text-align:center">
											ID
										</th>
										<th style="text-align:center">
											站点
										</th>
										<th style="text-align:center">
											标题
										</th>
										<th style="text-align:center">
											状态
										</th>
										<th style="text-align:center">
											节点
										</th>
										<th style="text-align:center">
											高危
										</th>
										<th style="text-align:center">
											中危
										</th>
										<th style="text-align:center">
											低危
										</th>
										<th style="text-align:center">
											Banner
										</th>
										<th style="text-align:center">
											OS
										</th>
										<th style="text-align:center">
											扫描周期
										</th>
										<th style="text-align:center">
											扫描时间
										</th>
										<th style="text-align:center">
											操作
										</th>
									</tr>
									</thead>
									<tbody>
									<?php echo call_user_func(scan_index);?>
									</tbody>
								</table>
							</div>
						</div>









						<!--<div class="navbar navbar-inverse" style="margin-bottom:10px;">-->
							<!--<div class="navbar-inner" style="padding-left: 600px; border-color: #fdffff;background-image: linear-gradient(to bottom, rgb(83,165,83), rgb(83,165,83));">-->
								<!--<div class="container-fluid">-->
									<!--<a class="brand" href="?m=info">网站信息</a>-->
								<!--</div>-->
							<!--</div>-->
						<!--</div>-->

						<div class="moretner">
							<div class="navbar navbar-inverse moretner-left" style="margin-bottom:10px;float:left;background: #fdffff;padding-top:35px;">
								<div class="navbar-inner" style="border-color: #fdffff;background-image: linear-gradient(to bottom, rgb(83,165,83), rgb(83,165,83));">
									<div class="container-fluid" style="padding-top:40px;padding-bottom: 55px;padding-left:15px;height: 90px">
										<a class="brand"  href="?m=info" style="padding:7px 0px;line-height:25px;">网站信息</a>

									</div>
								</div>
							</div>
							<div class="moretner-right">

						<table class="table" style="font-size:14px;">
							<thead>
							<tr>
								<th style="text-align:center">
									ID
								</th>
								<th style="text-align:center">
									站点
								</th>
								<th style="text-align:center">
									标题
								</th>
								<th style="text-align:center">
									IP地址
								</th>
								<th style="text-align:center">
									端口
								</th>
								<th style="text-align:center">
									子域
								</th>
								<th style="text-align:center">
									敏感
								</th>
								<th style="text-align:center">
									CMS
								</th>
								<th style="text-align:center">
									WAF
								</th>
								<th style="text-align:center">
									OS
								</th>
								<th style="text-align:center">
									中间件
								</th>
								<th style="text-align:center">
									其他
								</th>

								<th style="text-align:center">
									操作
								</th>
							</tr>
							</thead>
							<tbody>
							<?php echo call_user_func(info_index);?>
							</tbody>
						</table>
							</div>
						</div>


						<!--<div class="navbar navbar-inverse" style="margin-bottom:10px;">-->
						<!--<div class="navbar-inner" style="padding-left: 600px; border-color: #fdffff;background-image: linear-gradient(to bottom, rgb(51,122,183), rgb(51,122,183));">-->
						<!--<div class="container-fluid">-->
						<!--<a class="brand"  href="?m=spider">爬虫任务</a>-->
						<!--</div>-->
						<!--</div>-->
						<!--</div>-->

						<div class="moretner">
							<div class="navbar navbar-inverse moretner-left" style="margin-bottom:10px;float:left;background: #fdffff;padding-top:35px;">
								<div class="navbar-inner" style="border-color: #fdffff;background-image: linear-gradient(to bottom, rgb(51,122,183), rgb(51,122,183));">
									<div class="container-fluid" style="padding-top:40px;padding-bottom: 55px;padding-left:15px;height: 90px">
										<a class="brand"  href="?m=spider" style="padding:7px 0px;line-height:25px;">爬虫任务</a>

									</div>
								</div>
							</div>
							<div class="moretner-right">

								<table class="table" style="font-size:14px;">
									<thead>
									<tr>
										<th style="text-align:center">
											ID
										</th>
										<th style="text-align:center">
											站点
										</th>
										<th style="text-align:center">
											客户
										</th>
										<th style="text-align:center">
											状态
										</th>
										<th style="text-align:center">
											URL总量
										</th>
										<th style="text-align:center">
											动态URL
										</th>
										<th style="text-align:center">
											暗链检测
										</th>
										<th style="text-align:center">
											敏感字检测
										</th>
										<th style="text-align:center">
											坏链检测
										</th>
										<th style="text-align:center">
											网页快照
										</th>
										<th style="text-align:center">
											爬取周期
										</th>
										<th style="text-align:center">
											完成时间
										</th>
										<th style="text-align:center">
											操作
										</th>
									</tr>
									</thead>
									<tbody>
									<?php echo call_user_func(spider_index);?>
									</tbody>
								</table>
							</div>
						</div>
					</div>



					<div class="tab-pane" id="panel-910581">
						<form action="?m=search&c=search" method="POST">
							<fieldset>
								<label><font color="orange" size="2px">检索tag：请输入想要查询的关键字即可</font></label>
								<label>站点名称</label><input type="text" name="title"/>

								<label>URL</label><input type="text" name="url"/>

								<label>所属客户</label>

								<select name="customer">
									<option value="">所有客户</option>

									<?php
								global $db;

								$sql = "SELECT * FROM customer order by name desc";

								$results = $db->query($sql);
									while ($fs = $db->fetch_array($results)){
									?>
									<option value="<?php echo $fs['0'];?>"><?php echo $fs['1'];?></option>
									<?php
								} ?>

								</select>
								<label>扫描周期</label>
								<select name="delay">
									<option value="">所有模式</option>
									<option value="1">每月一次</option>
									<option value ="2">每季度一次</option>
									<option value ="3">每半年一次</option>
									<option value="4">不扫描</option>
								</select>

								<label>操作系统<font color="orange" size="2px">&nbsp;&nbsp;&nbsp;如：Linux、Win等</font></label><input type="text" name="os"/>
								<label>开放端口<font color="orange" size="2px">&nbsp;&nbsp;&nbsp;如：8080、7001等</font></label><input type="text" name="port"/>
								<label>中间件<font color="orange" size="2px">&nbsp;&nbsp;&nbsp;如：IIS、Apache、Weblogic等</font></label><input type="text" name="middleware"/>
								<label>CMS<font color="orange" size="2px">&nbsp;&nbsp;&nbsp;如：Dede、Jcms、Wordpress等</font></label><input type="text" name="cms"/>
								<label>开发技术<font color="orange" size="2px">&nbsp;&nbsp;&nbsp;如：php、jsp、asp.net等</font></label><input type="text" name="language"/>

								<label></label>
								<button type="submit" class="btn">搜索</button>
								<button type="submit" class="btn">取消</button>
							</fieldset>
						</form>

					</div>


					<div id="cpasswd-<?php echo $_SESSION['username']?>" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
							<h3 id="myModalLabel">
								<?php echo $_SESSION['username']?>的密码修改
							</h3>
						</div>
						<div class="modal-body">
							<fieldset>
								<label>旧 密 码</label><input type="text" value="" name="oldpasswd" id="oldpasswd"/>
								<label>新 密 码</label><input type="text" value="" name="newpasswd" id="newpasswd"/>
								<label>重新输入</label><input type="text" value="" name="repasswd" id="repasswd"/>
							</fieldset>
						</div>
						<div class="modal-footer">
							<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button> <button class="btn btn-primary" onclick="cpasswd()">保存设置</button>
						</div>
					</div>

				</div>
			</div>
		</div>
	</div>
</div>